#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    float c = 0.0;
    int f = 0;
    scanf("%d", &f);
    c = 5.0 / 9 * (f - 32);
    printf("%.2f\n", c);

    return 0;
}